From a3dd96110aa2fbaa3fb1fa3ed4aa0c547111adf2 Mon Sep 17 00:00:00 2001 From: "cl349@firebug.cl.cam.ac.uk" Date: Fri, 16 Sep 2005 18:05:03 +0000 Subject: [PATCH] Fix setStoreChannel(None) - fixes cleanup on destroy. Signed-off-by: Christian Limpach --- tools/python/xen/xend/XendDomainInfo.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 4f645576f1..1c89862ae2 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -343,7 +343,11 @@ class XendDomainInfo: if self.store_channel and self.store_channel != channel: self.store_channel.close() self.store_channel = channel - self.storeDom("store/port", channel.port1) + if channel: + port = channel.port1 + else: + port = None + self.storeDom("store/port", None) def setConsoleRef(self, ref): self.console_mfn = ref -- 2.30.2